package com.adnaan.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.Date;

/**
 * author: adnaan
 * create: 2025-02-23 16:55
 * Description:
 */
@Data
@TableName("user_comment")
@Tag(name = "用户评论表")
public class UserComment {

    @TableId(type = IdType.AUTO)
    @Schema(name = "id", description = "主键")
    private Long id;

    @Schema(name = "userId", description = "用户ID")
    private Long userId;

    @Schema(name = "articleId", description = "文章ID")
    private Long articleId;

    @Schema(name = "commentContent", description = "评论内容")
    private String commentContent;

    @Schema(name = "commentTime", description = "评论时间")
    private Date commentTime;

    @Schema(name = "nickName", description = "昵称")
    @TableField(exist = false)
    private String nickName;

    @Schema(name = "avatar", description = "头像")
    @TableField(exist = false)
    private String avatar;
}
